Populates the database.