Enable foreign keys. DB connection handling.