add logging method with db command #43
add method for dbcommand #60