reusing connection to the database