added foreign keys to the expenses table query