abstract the orm