an sqlite data access layer