adding pass() and getSingle() methods to MainModel
.init.php adding functions