authentication moved from index to auth method, logout method, fixes #3
squerylDao refactoring