repaired sql defaults