Updated db class vars from protected to private, and added correct formatting