You need to update the membership_rels table member_state column to 'banned'.
You'll need to select the rel_id from the acs_rels table based on
object_id_one = acs__magic_object_id('registered_users')
object_id_two = user_id you want to ban
rel_type = 'membership_rel'