Changed sqlite to mysql