FIXED: use of database accessor

Adjusted database accessor use to be created when needed locally rather then 1 static object used across everything.