Added joinRefs()-call in reloadrec().
Added override of drop sql for primary keys.