Handle SQLITE_BUSY in pkgdb_begin_transaction() and get_pragma().  Also handle no extension case for add package filename.

Handle SQLITE_BUSY in pkgdb_begin_transaction() and get_pragma().

Also handle no extension case for add package filename.

These are in one request because I can't see how to split them. This isn't Perforce!