modified database and passengers tab query method