Got the database completely working.