Fixes database and prefix validation