fix db
index route
adding factor