Changes for moving database configuration outside the apis