Update primary database script

#209