Add class for spatialite.
Update makefile and add new exception.
Use database manager.