Fix to load database on loaddata