close connection after using database