make sure db file is refreshed