changed configuration for db connection
implemented login method
BaseDAO refactoring