Use thread-local instances for database-connected objects