invoice controller changed + changes in database