Add Application class template, database config