edit connect_db parameter and add methods for kevins project