test connection to database in login post