get invoice from db