Fixing sample_data error where database couldn't be reset