I recently started using sqlite for my new java project but how can I get the values of lastInsertRowId ,number of rows affected on previous query and also an inbuilt method to escape string(not necessary as prepare statement can do the job as well) .