error connecting to database while trying to relogin to default