fix .gitignore to ignore index.db
add -pipe to OPTFLAGS in Makefile