add simple login; renamed main project file. added helper methods for db operations