Change the method of initialize database