added active state for radiobuttons
removed import read_db