Add check for dangling transactions
Fix default values for migrations