add appfog database setting
add three controllers