parameters of function dbQueryForeignKey changed