Extract private methods to Private class extension
Optional thread safety and synchronized DB access

- Adds serial isolation queue and -performBlockAndWait: method to provide optional thread safe synchronized access to a database. This also allows KVC methods to reuse a shared sqlite3 database connection during one synchronized access.