Correct sql error and remove empty network - 
Add a check if at least one database is selected
Merge branch 'develop' of https://github.com/PPiMapBuilder/PPiMapBuilder.git into develop