Modified DB and added getRow method