open/close connection with db everytime when connecting to client