Finshed backend functionality for PKX editor