Started inplementing the database.