2014.7.13 tidy the project catalog

rebuild all apps with an extendable architecture
rectify the db connection variables