implements dao and remote methods