Sql query executioner.