added schema/db implementation

this is the schema implementation I was able to come up with