moving database connection from hard-coded to loaded via config