move AbstractEntity from DeltaDb, change prototypes