Fixed load script for loading database