use correct mysql-function