implemented rest service for the four database methods (no written tests)