Fixes database validation