only run data preparation if no data in database