public static int getTotalUsers() {
		int totalUsers = 0;
		try {
			String statement = new String("SELECT COUNT(userid) FROM " + DBTable);
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement);
			ResultSet rs = stmt.executeQuery();
			if (rs.next())
				totalUsers = rs.getInt("COUNT(userid)");
			rs.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}		
		return totalUsers;
	}