Add -lrt to makefile
Flash data to DB using transactions