added client database connection and jquery