Initial database structure, argument handling and masterlist updating.