made database connection config driven