Completed basic backend functionallity