fix routes so they all point to DB instead of array