public Member getMemberByUsername(String username, String admin, String username_sql, String admin_sql) 
	{
		Member member = new Member();
		DatabaseService ds = DatabaseService.newInstance();
		String sql;
		if(admin == null)
		{
			sql = username_sql;
		}
		else
		{
			sql = admin_sql;
		}	
		try
		{
			ResultSet rs = ds.prepare(sql).setString(username).executeQuery();
			while(rs.next())
			{
				member.setUsername(rs.getString(Constants.MEMBER_USERNAME));
				System.out.println("Member  dao" + rs.getString(Constants.MEMBER_USERNAME));
				member.setPassword(rs.getString(Constants.MEMBER_PASSWORD));
				System.out.println("Member  dao" + rs.getString(Constants.MEMBER_PASSWORD));
			}
		}
		catch(SQLException e)
		{
			logger.error("memberDao getMemberByUsername" + e);
		}
		finally
		{
			ds.close();
		}
		return member;
	}