Implemented a method to add a new row to the database.