spatialdatabase types refactored in enum, database methods moved to DaoSpatialite
small fixes on db validity