added login functionality
updated init db script