Added database statuses / priorities, as well as a lot more tweaks