SQlite3 implementation