DBWorker: methods insertToDB and updateRecord implemented