added the basis of the sqlite implementation