Fix mapping to work on postgres
Add resources for spring security plugin