db, redirect fixes