db now works and adds user credentials