Task#5533 - Implement "Lazy Loading" for database into Tinebase.

Purpose of implementation is decreasing the number of database connections.