Comment Re:Might I introduce you to SSH (Score 0) 322
You might be able to implement a web service to expose only the logic of the application rather than the database itself. Authentication is provided by the web service, I believe. More info on security can be found here