link db with interfaces (not 100% ready yet)