add invoice+credit info to database