With the risen of internet, there are more and more webpage database systems. Many companies put their webpage and database in the host which is provided by others due to the network bandwidth. This also comes up with a problem that is when we store sensitive data in databases, we can’t protect data from malicious DBAs’ theft because DBAs have the most powerful privileges in databases and they can do anything they want. In this thesis, we will develop a Web-Service based SQL query translation system. We encrypt data by encrypting SQL query before send to database. When we want to query database, system will first encrypt SQL query, then send it to remote database, after the database send back the result, system will decrypt the result and send it back to client.