Dynamically Populate a Menu using Proper Credential from Database

In this article I would like to describe how to populate a Menu bar dynamically from a database with proper credential of an user.