Added error logs to DB

now the database stores error messages about each transaction or just
says transaction success if no error messages occurred