Refactoring

Better error Exceptions handler.
db file may be read only.
Allow X-Domain

@todo Tests
Fixe bug

each classes have its own static members
Refactoring
Working on
Updated
@Todo
@Todo