initialize database before packaging app