DBCommonOperations modified to use prepared statements