now we can generate invoice from database object