How to insert a new backend into refdb

Define a new type, expand the if-then-else statement, include include-file. {work in progress}