Clean more cases of 'integer for DB rowid' values (bgo#696520)

The transition from int to long types [1] had some leftovers
which were working as runtime casts.

[1] https://git.gnome.org/browse/banshee/commit/?id=f847cb0c742b2d993dad71dba373bd81bb457afa