Fix contstraints in database.sql to import properly in an empty database