Changed query to execute in the create constructor