Transfered main functions implemented in userdb.js to appmain.js. So userdb is not needed anymore.