some changes for sqlite