extended application and created DB singleton