Moved the database configuration outside the APIs