added followdb subroutine class