added function to update / rescan database