setting the database