Attempts at fixing the db.