syncing servermethods and dbconnection