Added the batch loader
Added a function to convert db data to class data
Some small changes