fix server postgres cmd bug and route to tv svg