Avoid global db lock