create logDB.c, change makefile