Sanitize arguments sent to mgp database.