Makefile for database