adding database connection
adding database connection to controller construct
adding database queries