Changes for MySQL db support.