strip whitespaces at line ends
if no addr specified, do nothing
fix function hex_to_int does not exists, and select user_id from users, which is users.id.