Bug in new method createNewKeyMasterTbl The query for inserting the new record in dbs_keys was totally wrong Wrote something more correct and simpler!