Trying to implement the database.