Changed name of DataSource resource.
Changed SQL to make it work.