Open on create bugfix, multithreaded DB access.