initial go at a db router
Merge branch 'predefined-actions'