Commit after getting database to connect again