Database support

Add ability to store noid information into a database. Change saving of noid information to be synchronous instead of asynchronous.