Front end now accesses database for quetsions index