makefile for DB - Fixed bill problem - more bug fixes