Added DB patch to main admin UI

With smart detection of whether it's needed