Add missing c2p_db function.
Fix warnings when trying to get array length in 00-ALPM.t
Implement ALPM::DB::Sync::update's return val properly.