Updates to make registration and the database work.