partial--abstracting out the sqlite a bit more. Not sure if liking, though