Updated DB ban code