param passing method to function dbQueryForeignKey changed