foreignkeys are now supported again. also a more descriptive crash for getwherestatement. added vargs for primary keys in dbmanager