fixed database file issue