Add countEntries
Add void, static, and const

Add void and const to the function parameters.
Add static to the global variables.
Add find() with region locking and close database atexit()
Update {lock,unlock}DB to region locking
Update addP() to region locking
Update removeP() to region locking and add print_region() function