storage interface added
class for memory storage added
storage handling removed from main class
mysql handling moved to own file