Adding preference to check if the db has been populated already