Updated Database system

Database system now flushes every time anything is done.
derp

afix'n my derps