Added option to select redirect type (301/302)
Added index to oldUrl, to help lookups on larger tables