Allow a second optional argument to captiveportal_read_db to be able to index the read db by the field in the db.
Allow a second optional argument to captiveportal_read_db to be able to index the read db by the field in the db.