Change database to mysql and use json -> pickle