removed database flushing