More sqlite implementation