made interfaces for jpa and mongo
REST calls each interface instead of direct.
changed names for files and folders