Setting up of database and basic controls.