code cleanup - fix for db innodb syncronization issue.
=commit for bug fixes