Logs removed
nullPointer Fix
Log removed
closing database
Logs removed
getConfig instead of accessing directly de variable