initialize database from external file