Purging unused logic file.
Updated app to load the database properly.
Minor polish to database code.