Fixed up registration and cleaned out the database.