Allow to be used without bsddb installed, for uses where it is not needed (webapp and other uses)

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23371 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
Initial protection for not having PIL (either not installed or not available, python3)

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23372 4ae1f11a-8b86-4847-b8af-ab372f36d1fd