don't save statement attributes to db if empty