misc formatting, switch from sqlite to mysql