fix issue with multiple copies of database, for now at least