AR and entities

Functions save, update, delete added