loggin of failed commands

failed command are not loggin their error to the database. write someerrortext to the database if command failed