removing connections to database