Added missing functions to MapperSecurityDecoratorGen.java.ftl

Added functions to MapperSecurityDecoratorGen.java.ftl that were missing
Only functions that communicate with the database were added.