Removing type and subtype from insert query as no longer necessary and moving guts of schema creation into an init method.