changed db from sqlite to mysql