improve adapter sqlite