database client and server classes