recreate db after each change