Fix db_spec
Land #2654 which fixes rpsec for #2093