remove db-access from files where it is not necessary