'site_db_type' not defined error  fixed