added simple constructor support, promises support for the loading of the db