Port to MinGW, now only support sqlite