starting to retrieve database state