added db interface
added usage documentation