altered preparetable/store function event (backend)

altered preperatable, check, store functions + added save function.