update Makefile and README and add a test case when reading from the database