data entered are not inserting into the database

If you’re using the Business App sample, then why not just use it as it’s intended there. Use the database.lua module which supports CRUD operations on the database and abstracts a lot of the SQL away from you.

Rob