Rewrote all data methods to check if temp db

If temp database, gets LocalConfig CurrentConnection, otherwise creates
connection and closes it at end