Improved validation of the database parameters