Added LocalDatabase and a little more functionality to the databases