create offline database