Fix error management and SQL resquest in action comm