ifDATABASE.scalar("select count(*) from friend_requests where #{own_request?"to_account_id":"from_account_id"} = ? and #{own_request?"from_account_id":"to_account_id"}",params["targetAccountID"].to_i,account_id).as(Int64)==0
DATABASE.exec("delete from friend_requests where #{own_request?"to_account_id":"from_account_id"} = ? and #{own_request?"from_account_id":"to_account_id"}",params["targetAccountID"].to_i,account_id)