add close connection to db