Updated AppMan Queries

Fixed the application manager queries to reflect the changes made in the
database. Should be done now.