Placed database variables into a separate file.
Modifications in error handling on server side.