fix compile error without sqlite