SQL statements updated
App template updated