Added DB Class and app class