Some bugfixes

Added missing relationship for domain record.
Fix int to fit ttl value.
Added ON DELETE CASCADE to foreign key.
Some more fixes

Temporary fix for empty ttl or prio values.
Added check if domain already exists.
Added some default records for domain creation.