setup makefile to rebuild all database