Back end code will only run on the server. As to the code required to communicate with it and the database I'm unable to help. Hopefully some other members with more knowledge in this area will jump in