contrib: indent
contrib: use new APIs
update .gitignore for contrib directory
contrib: provide default makefile
contrib: execute program and dump database