Adding database template loader and tests.