Replaced mysql function names deprecated in most recent version of the mysql module