modulize doorkeeper model to decouple with orm