add the logic to check if the schema already exists in the DB before insert the scheam