add the required plugins, and modify the code to work with the database