Feature fix app

Fix App.java bug for re-designing of DB.