GUI edit database

modified how the GUI files receive the database