added class to manage custore

change logic of database, every customer has a single db file