Edit Modules

Change edit modules code to work with new database.