added isAdmin function
admin mode is functioning
added initial admin templates
added admin modes: Template, Department, Category, Admin and Analytics
added generic database retrieval functions based on old MEID code