backend for login and logout
php configuration

query function and db handler
Added permission protection for pages
implemented login via js