added initialize db method