Added table / database initialization logic.