Condtional DB loading