develop database accessor on client side