tested and worked for MySQL