changing from sqllite3 to mysql