daemon: fixed parameters order in mysql db concat function