Added charge class
Moved details to charge class
Created db class (pdo) and initialized it.