Database fixing and GUI update