implemented db initialization, compiles but not tested
merged makefile