make ios act like Android when re-opening a database