attempted to connect to database to POST during registration