active record for client side