General ojs dao

I think @Szagrat that DAO is compleate, somebody can review it.