Fixed database reloading