added indices, foreign_keys, and updated questions controller