initial commit for sqlite support

needs a lot more work though