connect databases to client