Mysql input implemented