Configured the database