Added the database connections. Also removed some testing code and uncommented some previous code.