There are spots in the code which are redundant. For example, there are multiple times a database connection is opened, whereas we should probably have only one method that is responsible for opening and closing the database. Each of these identifications will lead to additional issues created.