added basic code, started implementing database api
wrote some tests